package com.xoms.pad.persist.dao;

import java.util.List;

import com.xoms.pad.model.AccountBean;
import com.xoms.pad.model.ModifyOrderBean;
import com.xoms.pad.model.OrderBean;
import com.xoms.pad.model.ProOrderBean;


/**
 * 订单持久化层接口
 * 
 * @author stallmandu
 *
 */
public interface OrderDao {

	/**
	 * 插入
	 * 
	 * @param bean
	 * @return
	 */
	public int insert(OrderBean bean);

	/**
	 * 总数
	 * 
	 * @return
	 */
	public int selectCount();

	/**
	 * 分页查询
	 * 
	 * @param page
	 * @param pageSize
	 * @return
	 */
	public List<OrderBean> selectList(String accId,String oid,int sendStatus,int status,int orderType, int page, int pageSize);
	
	/**
	 * 订单商品信息
	 * 
	 * @return
	 */
	public List<ProOrderBean> selectOrderProList(String oid);
	
	/**
	 * 修改订单
	 * 
	 * @return
	 */
	public int selectModifyOrder(String oid, String payType,
			String isHand,String roomId,String handRoomId,String payStatus);
	
	
	/**
	 * 根据订单编号查询订单信息
	 * 
	 * @param orderNo
	 * @return
	 */
	public OrderBean selectByOrderNo(String orderNo);

}
